import Router from 'koa-router'
import config from '../config/config.dev'
import ContentController from '../controller/content.controller'

const router = new Router({prefix: '/content'})

router.post('/upload_article', ContentController.uploadArticle)
router.post('/modify_article', ContentController.modifyArticle)
router.get('/get_article', ContentController.getArticle)
router.get('/get_all_articles', ContentController.getAllArticles)
router.delete('/delete_article', ContentController.deleteAritle)
export default router.routes()
